<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

        <title>订单列表</title>

        <link href="{$Think.const.ADMIN_CSS_URL}mine.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：订单管理-》订单列表</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="/666/shop/index.php/Admin/Order/showlist.html">【返回】</a>
                </span>
            </span>
        </div>
        <div></div>
        <div class="div_search">
            <span>
                <form action="#" method="get">
                    订单<select name="s_product_mark" style="width: 100px;">
                        <option selected="selected" value="0">请选择</option>
                        <option value="1">苹果apple</option>
                    </select>
                    <input value="查询" type="submit" />
                </form>
            </span>
        </div>
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody><tr style="font-weight: bold;">
                        <td>订单号</td>
                        <td>创建时间</td>
                        <td>订单金额</td>
                        <td>订单状态</td>
                        <td>支付方式</td>
                        <td>配送方式</td>
                        <td>订单详情</td>
                        <td>订单评价</td>
                        <td colspan='3'>操作</td>
                    </tr>
                   <?php if(is_array($info)): foreach($info as $k=>$v): ?><tr id="product1">
                        <td><?php echo ($v["order_sn"]); ?></td>
                        <td><?php echo ($v["order_create_time"]); ?></td>
                        <td><?php echo ($v["order_amount"]); ?></td>
                        <td><?php switch($v["order_status"]): case "0": ?>未付款<?php break;?>
                            <?php case "1": ?>未发货<?php break;?>
                            <?php case "2": ?>未收货<?php break;?>
                            <?php case "3": ?>未评价<?php break;?>
                            <?php case "4": ?>已完成<?php break;?>
                            <?php default: endswitch;?></td>
                        <td><?php echo ($v["order_pay_name"]); ?></td>
                        <td><?php echo ($v["order_ship_name"]); ?></td>                        
                        <td><a href="detail/order_id/<?php echo ($v["order_id"]); ?>">详情</td>
                        <td><?php echo ($v["order_remarks"]); ?></td>
                        <td>
                            <?php switch($v["order_status"]): case "0": ?>待发货<?php break;?>
                                <?php case "1": ?><a href="showlist/order_id/<?php echo ($v["order_id"]); ?>">发货</a><?php break;?>
                                <?php default: ?>已发货<?php endswitch;?>
                        </td>
                        <td><a href="#">修改</a></td>
                        <td><a href="#" onclick="return confirm('删除后将无法恢复,确定要删除?')">删除</a></td>
                    </tr><?php endforeach; endif; ?>
<!--                    <tr>
                        <td colspan="20" style="text-align: center;">
                           <?php echo ($pagelist); ?>
                        </td>
                    </tr>-->
                </tbody>
            </table>
        </div>
    </body>
</html>